/**
 * @author：xiehao
 * @date：2020年05月24日
 * @version V1.0
 */
package com.laxia.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint( validatedBy = {PatternValidator.class} )
@Target( {ElementType.METHOD, ElementType.FIELD} )
@Retention( RetentionPolicy.RUNTIME )
public @interface PatternLegality {

    String message() default "";
    
    String regexp();

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
